/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86186
 * Date: 2023-09-30
 * Time: 14:10
 */
public class SpinLock {
    private Thread owner = null;

    public void lock() {
        //while (!CAS(this.owner, null, Thread.currentThread())) {

        //}
    }

    public void unlock() {
        this.owner = null;
    }
}
